Einhugur macOS Bridge plugin.

NSTextField.FromPtr Method

Constructs NSTextField object from Ptr handle coming from declares or 3rd party plugin.

shared FromPtr(
   textPtr as Ptr) as EinhugurMacOSBridge.NSTextField

Parameters

textPtr
Ptr handle coming from declare or 3rd party plugin that points to live NSTextField object.

Returns

EinhugurMacOSBridge.NSTextField

Remarks

Do not pass Ptr in here that is not actually NSTextField handle, doing so would generate crash.

The NSTextField class will handle retaining the object once and releasing once the object once the NSTextField class is no longer used.

See Also

NSTextField Class